package org.mokusakura.domain;

import java.io.Serializable;


public class User implements Serializable {

    private static final long serialVersionUID = 8751282105532159742L;
    private Integer id;
    private String password;
    private String email;
    private String firstName;
    private String lastName;
    private String status;
    private String address1;
    private String address2;
    private String city;
    private String state;
    private String zip;
    private String country;
    private String phone;
    private String favouriteCategoryId;
    private String languagePreference;
    private Boolean listOption;
    private Boolean bannerOption;
    private String bannerName;
    private Cart cart;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", firstName='" + firstName + '\'' +
                ", lastName='" + lastName + '\'' +
                ", status='" + status + '\'' +
                ", address1='" + address1 + '\'' +
                ", address2='" + address2 + '\'' +
                ", city='" + city + '\'' +
                ", state='" + state + '\'' +
                ", zip='" + zip + '\'' +
                ", country='" + country + '\'' +
                ", phone='" + phone + '\'' +
                ", favouriteCategoryId='" + favouriteCategoryId + '\'' +
                ", languagePreference='" + languagePreference + '\'' +
                ", listOption=" + listOption +
                ", bannerOption=" + bannerOption +
                ", bannerName='" + bannerName + '\'' +
                ", cart=" + cart +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public User setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getFirstName() {
        return firstName;
    }

    public User setFirstName(String firstName) {
        this.firstName = firstName;
        return this;
    }

    public String getLastName() {
        return lastName;
    }

    public User setLastName(String lastName) {
        this.lastName = lastName;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public User setStatus(String status) {
        this.status = status;
        return this;
    }

    public String getAddress1() {
        return address1;
    }

    public User setAddress1(String address1) {
        this.address1 = address1;
        return this;
    }

    public String getAddress2() {
        return address2;
    }

    public User setAddress2(String address2) {
        this.address2 = address2;
        return this;
    }

    public String getCity() {
        return city;
    }

    public User setCity(String city) {
        this.city = city;
        return this;
    }

    public String getState() {
        return state;
    }

    public User setState(String state) {
        this.state = state;
        return this;
    }

    public String getZip() {
        return zip;
    }

    public User setZip(String zip) {
        this.zip = zip;
        return this;
    }

    public String getCountry() {
        return country;
    }

    public User setCountry(String country) {
        this.country = country;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public User setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getFavouriteCategoryId() {
        return favouriteCategoryId;
    }

    public User setFavouriteCategoryId(String favouriteCategoryId) {
        this.favouriteCategoryId = favouriteCategoryId;
        return this;
    }

    public String getLanguagePreference() {
        return languagePreference;
    }

    public User setLanguagePreference(String languagePreference) {
        this.languagePreference = languagePreference;
        return this;
    }

    public Boolean getListOption() {
        return listOption;
    }

    public User setListOption(Boolean listOption) {
        this.listOption = listOption;
        return this;
    }

    public Boolean getBannerOption() {
        return bannerOption;
    }

    public User setBannerOption(Boolean bannerOption) {
        this.bannerOption = bannerOption;
        return this;
    }

    public String getBannerName() {
        return bannerName;
    }

    public User setBannerName(String bannerName) {
        this.bannerName = bannerName;
        return this;
    }

    public Cart getCart() {
        return cart;
    }

    public User setCart(Cart cart) {
        this.cart = cart;
        return this;
    }

    public void initUser() {
        listOption = false;
        bannerOption = false;
        languagePreference = "";
        firstName = "";
        lastName = "";
        favouriteCategoryId = "";
        status = "";
        address1 = "";
        address2 = "";
        city = "";
        state = "";
        zip = "";
        country = "";
        phone = "";
        bannerName = "";
    }

}
